This is an early project based on SIMD data that I’m using to try and learn R. I intend to explore the package ‘ggplot2’ to practice a set of skills I’m attempting to learn through a combination of DataCamp courses, RStudio ‘Cheat Sheets’ and twitter.
Initially I used map cordinates given by Ordinance Survey to find the centre of any KA27 postcode on a map. (KA27 being the prefix or ‘postcode area’ that denotes all Aran Island postcodes).
I then read the coordinates into sf with st_as_sf(), and plotted over a shape file map of Arran; over the SIMD data zones, as well as the section of coordinates contained in one data zone/
Coordinate plots
With the postcodes sorted, I then wanted to relate some other information about these areas. I used SIMD ‘DataZone boundraries’ and plotted their ERSI Shapefiles using ‘geom_sf.’ First the data zones onto the island. Then I coloured/labelled the individual data zones. Having worked that out, I wanted to show some health data about the zones. I overlayed ‘percentile’ data about the areas for 2016.
DZ Outlines2
Then after faffing about with individual shape files for every year, (The data zone labels changed after 2012), I did the same for all the SIMD data periods and used facet_wrap to plot them all together.
Percentile Facet_wrap
Combining the coordinate and SIMD data, I’ve summarised one of the zones (S01004372) below.
Summary plots
Coordinate plots
Coordinate plots
Coordinate plots
Coordinate plots
Coordinate plots
Coordinate plots
Coordinate plots
The next steps will be to overlay this data over a map using leaflet.
The overall aim of this project will be to create an easy template by which a user with no prior programming knowledge can create interactive graphs by overlaying some form of data attributed to a postcode alone.